<?php
$properties = array(
	'id'=>'login-form',
	'enableClientValidation'=>false,
);
$form = $this->beginWidget('CActiveForm', $properties);
?>

<div class="row">
	<?php
	echo $form->labelEx($model, 'username');
	$htmlOptions =  array('maxlength'=>255, 'class'=>'fill');
	echo $form->textField($model, 'username', $htmlOptions);
	echo $form->error($model, 'username');
	?>
</div>

<div class="row">
	<?php
	echo $form->labelEx($model, 'password');
	echo $form->passwordField($model, 'password', $htmlOptions);
	echo $form->error($model, 'password');
	?>
</div>

<div class="row rememberMe">
	<?php
	echo $form->label($model, 'rememberMe');
	echo $form->checkBox($model, 'rememberMe');
	echo $form->error($model, 'rememberMe');
	?>
</div>

<div class="row buttons">
	<?php echo CHtml::submitButton('Login'); ?>
</div>

<?php $this->endWidget(); ?>
